home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 6 / coreaids.zip / SCRN_TYP.ASM < prev    next >
Assembly Source File  |  1987-06-25  |  899b  |  37 lines

  1. ;    DESC:    Returns the address of the video memory buffer       V1.00
  2. ;    OUT:    *{VIDEO} segment address of start of video memory area
  3. ;         Useful only with MDA and CGA graphics. B&W area is at B000H
  4. ;         while color area is at B800H
  5. ;    SAMPLE:    Callm    SCRN_TYP,,<VIDEO>
  6. ;    ####################################################################
  7.  
  8.     Extrn    PUSHALL:NEAR
  9.     Extrn    POPALL:NEAR
  10.  
  11. SCRN_TYC    Segment
  12.     Assume    CS:SCRN_TYC
  13.     Public    SCRN_TYP
  14.                         ;notice.
  15.     DB    'SCRN_TYP - V1.00, Copyright 1987, CoreTechs   ',0DH,0AH
  16.  
  17. SCRN_TYP    Proc    Near            ;returns the offset of
  18.     Call    PUSHALL                ;the screen in memory.
  19.  
  20.     Mov    BX,0B800H            ;assume default of color.
  21.  
  22.     Int    11H                ;get equipment determination.
  23.  
  24.     And    AX,0030H            ;isolate crt switches.
  25.     Cmp    AL,30H
  26.     Jne    COLOR
  27.  
  28.     Mov    BX,0B000H            ;reset for b&w.
  29.  
  30. COLOR:    Push    BX                ;return video area.
  31.     Call    POPALL
  32.     Ret
  33. SCRN_TYP    Endp
  34.  
  35. SCRN_TYC    Ends
  36.     End
  37.